<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${sessionScope.currUser.userName }--个人中心</title>
<link href="${basePath }/styles/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${basePath}/scripts/jquery.js"></script>
</head>

<body>
	<%@ include file="header.jsp" %>
	<%@ include file="secondary-bar.jsp" %>
	<%@ include file="sidebar.jsp" %>
 <div id="right">
	<div class="column">
    	<h3 class="tabs_involved">个人资料</h3>
        <hr />
        <div class="module_content">
            <div class="user_info">            	
            	<span class="state">注册于${user.createTime}</span>
            </div>
            <div class="user_info">
            	<span class="state">默认语言 中文</span>
            </div>
            
        </div>     
    </div>
    <div class="column">
    	<h3 class="tabs_involved">分配给我的任务</h3>
        <hr />
        <c:forEach items="${user.workIssuesList}" var = "i" >
        	<c:if test="${i.workUser.id eq user.id}">
		        <div  class="user_info">
		           <div>
		            	<a href="issues!get.jspx?issues.id=${i.id }">${i.title }</a>
		            	<span class="state">${i.createTime }</span>
		            </div>            
	        	</div>  
	        </c:if>
        </c:forEach> 
    </div>
    <div class="column">
    	<h3 class="tabs_involved">最近创建的任务</h3>
        <hr />
          <c:forEach items="${user.createIssuesList}" var = "i" >
        	<c:if test="${i.createUser.id eq user.id}">
		        <div  class="user_info">
		           <div>
		            	<a href="issues!get.jspx?issues.id=${i.id }">${i.title }</a>
		            	<span class="state">${i.createTime }</span>
		            </div>            
	        	</div>  
	        </c:if>
        </c:forEach>
    </div>
    </div>
</body>
</html>
